package com.java.oop;

/**
 * 餐厅
 */
public class Resteraut {

    /**
     * 为顾客服务
     */
    public void service(Human human){
        System.out.println("大爷您来了~~小的为你准备好茶水了");
        human.eat();
    }

//    public void service(American american){
//        System.out.println("Hello~~May I help you!!");
//        american.eat();
//    }
//
//    public void service(Indian indian){
//        System.out.println("Hello~~Indian Baby!!!");
//        indian.eat();
//    }

    public static void main(String[] args) {
        Resteraut resteraut = new Resteraut();
        Chinese chinese = new Chinese();
        American american = new American();
        Indian indian = new Indian();
        resteraut.service(chinese);
        resteraut.service(american);
        resteraut.service(indian);
    }
}
